package cn.iocoder.yudao.module.erp.controller.admin.finance.vo.bank;


import cn.iocoder.yudao.framework.excel.core.convert.DateConvert;
import cn.iocoder.yudao.framework.excel.core.convert.TimeConvert;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * 银行流水 Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免导入有问题
public class BankImportExcelVO {
    @ExcelProperty(value = "日期", converter = DateConvert.class)
    private LocalDate date;

    @ExcelProperty(value = "时间", converter = TimeConvert.class)
    private LocalTime time;

    @ExcelProperty("本单位账户名")
    private String myName;

    @ExcelProperty("本单位账户号")
    private String myAccount;

    @ExcelProperty("往来单位账户名")
    private String hisName;

    @ExcelProperty("往来单位账户号")
    private String hisAccount;

    @ExcelProperty(value = "金额")
    private BigDecimal price;

    @ExcelProperty(value = "摘要")
    private String remark;

}
